﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace crontab
{
    public partial class MouseTicker : Form
    {
        private Form enterface = null;

        public MouseTicker(Form referer)
        {
            enterface = referer;
            InitializeComponent();
        }

        private void MouseTicker_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason.ToString() == "UserClosing")
            {
                enterface.Show();
                this.Hide();
                e.Cancel = true;
            }
        }
    }
}
